<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap J_check_wrap">
	<div class="nav">
		<ul class="cc">
			<li><a href='<yjd:url url="/smscontent/list"/>'>短信记录</a></li>
			<li><a href='<yjd:url url="/smstemplate/list"/>'>短信模板</a></li>
			<li><a href="<yjd:url url="/market/forwardBatch"/>">批量发送</a></li>
			<li class="current"><a href="#">营销短信</a></li>
			<li><a href="<yjd:url url="/market/sms"/>">营销短信任务</a></li>
			<li><a href="<yjd:url url="/market/channelList"/>">短信发送渠道</a></li>
			<li ><a href="<yjd:url url="/marketFilter/list"/>">营销短信黑名单</a></li>
		</ul>
	</div>
	<div class="h_a">搜索条件</div>
	<form autocomplete="off" method="get" action="<yjd:url url="/market/list"/>">
		<div class="search_type cc mb10">
			<label>会员生日：</label>
			<input type="text" class="input length_1 mr10 J_date date" name="birthdate" value="${paramMap.birthdate }"> 
			
			<label>充值未理财资金：</label> 
			<input type="text" placeholder="最小充值" onkeyup="this.value=this.value.replace(/\D/g,'')" class="input length_1 mr10" name="balanceStart" value="${paramMap.balanceStart }"> 
			<label>至：</label>
			<input type="text" placeholder="最大充值" onkeyup="this.value=this.value.replace(/\D/g,'')" class="input length_1 mr20" name="balanceEnd" value="${paramMap.balanceEnd }"> 
		
			<label>会员ID：</label> 
			<input type="text" placeholder="最小ID" onkeyup="this.value=this.value.replace(/\D/g,'')"class="input length_1 mr10" name="idStart" value="${paramMap.idStart }">
			<label>至：</label>
			<input type="text" placeholder="最大ID" onkeyup="this.value=this.value.replace(/\D/g,'')" class="input length_1 mr20" name="idEnd" value="${paramMap.idEnd }">
			
			<button class="btn btn_submit length_1" type="submit">搜索</button>
		</div>
	</form>
	<div class="table_list" style="white-space: nowrap;">
		<c:set var="hashData" value="${pager.pagerModel.dataList!=null && fn:length(pager.pagerModel.dataList)>0 }" />
		<table style="float: left; width: 70%">
			<thead>
				<tr>
					<!-- <td width="50">
						<input type="checkbox"/>
						全选
					</td> -->
					<td>ID</td>
					<td>会员号</td>
					<td>真实姓名</td>
					<td>手机号</td>
					<td>性别</td>
					<td>生日</td>
					<td>充值未投资金额</td>
					<td>注册日期</td>
					<td>状态</td>
				</tr>
			</thead>
			<c:if test="${hashData }">
				<tbody id="J_word_list">
					<c:forEach items="${pager.pagerModel.dataList }" var="item">
						<tr>
							<!-- <td>
								<input type="checkbox"/>
							</td> -->
							<td>${item.user_id }</td>
							<td>${item.username }</td>
							<td>${item.idname }</td>
							<td>${item.mobileNumber }</td>
							<td>${item.gender }</td>
							<td>${item.formatBirthday }</td>
							<td>${item.balance }</td>
							<td>${item.formatRegDate }</td>
							<td>${item.status }</td>
						</tr>
					</c:forEach>
				</tbody>
			</c:if>
		</table>
		<form autocomplete="off" class="J_ajaxForm" method="post" action="<yjd:url url="/market/send"/>" >
			<input type="hidden" name="birthday" value="${paramMap.birthday }">
			<input type="hidden" name="balanceStart" value="${paramMap.balanceStart }"> 
			<input type="hidden" name="balanceEnd" value="${paramMap.balanceEnd }"> 
			<input type="hidden" name="idStart" value="${paramMap.idStart }">
			<input type="hidden" name="idEnd" value="${paramMap.idEnd }">
			<table style="float: right; width: 20%; padding-top: 200px; height: 100%">
				<tbody>
					<tr>
						<td width="60">任务名称</td>
					</tr>
					<tr>
						<td><input name="title" class="input  length_6"></td>
					</tr>
					<tr>
						<td width="60">短信内容</td>
					</tr>
					<tr>
						<td><textarea name="content" class="length_6"></textarea></td>
					</tr>
					<tr>
						<td width="60">发送渠道</td>
					</tr>
					<tr>
						<td>
							<ul class="single_list cc">
								<li><label><input name="channel" type="radio"
										value="SMS_CHANNEL_MONTNETS_MARKETING" <c:if test="${defchannel.param_value eq 'SMS_CHANNEL_MONTNETS_MARKETING'}"> checked</c:if>><span>梦网短信</span></label></li>
								<li><label><input name="channel" type="radio"
										value="SMS_CHANNEL_WODONGKEJI" <c:if test="${defchannel.param_value eq 'SMS_CHANNEL_WODONGKEJI'}"> checked</c:if>><span>沃动短信</span></label></li>
							</ul>
						</td>
					</tr>
					<tr>
						<td>
							<button type="submit" class="btn btn_submit mr10 J_ajax_submit_btn">选取会员生成任务</button>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<div style="clear: both;"></div>
	</div>
	<%@ include file="../../public/pager/pager.pagination.jsp" %>
</div>